/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.google.common.collect.Lists;
import com.soccer.cms.modules.sys.entity.Dict;
import com.soccer.cms.modules.cms.entity.Category;
import com.soccer.cms.common.persistence.DataEntity;


/**
 * 推荐功能Entity
 * @author zouqh
 * @version 2015-05-28
 */
public class Recommen extends DataEntity<Recommen> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private Dict grouptype;		// 分组类型
	private Dict rescomtype;		// 推荐类型
	private Dict displaytype;		// 显示类型
	private Category category;		// 所属栏目
	private String article;		// 关联文章
	private Dict linktype;	 // 链接类型
	private String links;  // 链接	
	private Dict infotype;	 // 内容类型
	private Dict infoposition;  // 小标位置
	private String tag;	// TAG标签
	private String imageid;		// 显示图片
	private Integer sort;		// 顺序
	private Dict ispublish;		// 发布状态
	private List<Imageinfo> imageinfoList = Lists.newArrayList();	// 图片列表
	private List<Recommen> recommenList = Lists.newArrayList();	// 推荐列表
	private List<String> groupTypeList = Lists.newArrayList();	// 分组查询列表
	
	public Recommen() {
		super();
	}

	public Recommen(String id){
		super(id);
	}

	
	public List<String> getGroupTypeList() {
		return groupTypeList;
	}

	public void setGroupTypeList(List<String> groupTypeList) {
		this.groupTypeList = groupTypeList;
	}

	@Length(min=1, max=50, message="编码长度必须介于 1 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	public Dict getInfotype() {
		return infotype;
	}

	public void setInfotype(Dict infotype) {
		this.infotype = infotype;
	}

	public Dict getInfoposition() {
		return infoposition;
	}

	public void setInfoposition(Dict infoposition) {
		this.infoposition = infoposition;
	}

	public Dict getGrouptype() {
		return grouptype;
	}

	public void setGrouptype(Dict grouptype) {
		this.grouptype = grouptype;
	}

	public Dict getRescomtype() {
		return rescomtype;
	}

	public void setRescomtype(Dict rescomtype) {
		this.rescomtype = rescomtype;
	}
	
	public Dict getDisplaytype() {
		return displaytype;
	}

	public void setDisplaytype(Dict displaytype) {
		this.displaytype = displaytype;
	}
	
	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	@Length(min=0, max=64, message="关联文章长度必须介于 0 和 64 之间")
	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}
	
	@Length(min=0, max=500, message="显示图片长度必须介于 0 和 500 之间")
	public String getImageid() {
		return imageid;
	}

	public void setImageid(String imageid) {
		this.imageid = imageid;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	public Dict getIspublish() {
		return ispublish;
	}

	public void setIspublish(Dict ispublish) {
		this.ispublish = ispublish;
	}

	public List<Imageinfo> getImageinfoList() {
		return imageinfoList;
	}

	public void setImageinfoList(List<Imageinfo> imageinfoList) {
		this.imageinfoList = imageinfoList;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public Dict getLinktype() {
		return linktype;
	}

	public void setLinktype(Dict linktype) {
		this.linktype = linktype;
	}

	public String getLinks() {
		return links;
	}

	public void setLinks(String links) {
		this.links = links;
	}

	public List<Recommen> getRecommenList() {
		return recommenList;
	}

	public void setRecommenList(List<Recommen> recommenList) {
		this.recommenList = recommenList;
	}
	
	
}